package a.f.h.a.a;

import a.c.q;
import a.c.y;
import a.c.z;

public class o
{
  public static int a;
  
  public static e a(e parame)
  {
    boolean bool2 = f.e;
    boolean bool1 = f.d;
    e locale;
    do
    {
      for (locale = parame; !bool1; locale = locale.a())
      {
        if (locale.d()) {
          break;
        }
        if (bool1) {
          break label39;
        }
      }
    } while (bool2);
    label39:
    return locale;
  }
  
  public static boolean a(e parame1, e parame2)
  {
    boolean bool = f.e;
    if (!bool) {
      if (!parame1.d())
      {
        if (bool) {
          break label38;
        }
        if (!parame2.d()) {
          break label32;
        }
      }
    }
    return false;
    label32:
    label38:
    return parame1.a() == parame2.a();
  }
  
  public static e[] c(e parame1, e parame2)
  {
    boolean bool2 = f.e;
    boolean bool1 = f.d;
    if (!bool2)
    {
      if (!parame1.d()) {
        if (bool2) {
          break label49;
        }
      }
    }
    else {
      if (!parame2.d()) {
        break label48;
      }
    }
    throw new RuntimeException("Node is Root Node !!");
    label48:
    label49:
    e locale1 = parame1;
    e locale2 = parame2;
    while (locale1.g() > locale2.g())
    {
      locale1 = locale1.a();
      if (bool2) {
        break label160;
      }
      if (bool1) {
        break label150;
      }
      if (bool1)
      {
        if (bool2) {
          break label119;
        }
        if (!bool2) {}
        q.n = !q.n;
      }
    }
    label119:
    do
    {
      break;
      if (locale1.g() >= locale2.g()) {
        break;
      }
      locale2 = locale2.a();
      if (bool2) {
        break label183;
      }
      if (bool1) {
        break label182;
      }
    } while (!bool1);
    label150:
    label160:
    label177:
    label182:
    label183:
    e[] arrayOfe;
    do
    {
      break label177;
      if (bool2) {
        break label119;
      }
      if (!a(locale1, locale2))
      {
        locale1 = locale1.a();
        locale2 = locale2.a();
        if (!bool1) {
          break;
        }
      }
      arrayOfe = new e[] { locale1, locale2 };
    } while (bool2);
    if (q.o) {
      f.e = !bool2;
    }
    return arrayOfe;
  }
  
  public static e d(e parame1, e parame2)
  {
    e[] arrayOfe = c(parame1, parame2);
    return arrayOfe[0].a();
  }
  
  public static e e(e parame1, e parame2)
  {
    boolean bool2 = f.e;
    boolean bool1 = f.d;
    if (!bool2)
    {
      if (!parame1.d()) {
        if (bool2) {
          break label49;
        }
      }
    }
    else {
      if (!parame2.d()) {
        break label48;
      }
    }
    throw new RuntimeException("Node is Root Node !!");
    label48:
    label49:
    e locale1 = parame1;
    e locale2 = parame2;
    do
    {
      if (locale1.g() <= locale2.g()) {
        break;
      }
      locale1 = locale1.a();
      if (bool2) {
        break label112;
      }
      if (bool1) {
        break label106;
      }
    } while (!bool1);
    if (!bool2)
    {
      if (bool2) {
        break label155;
      }
      if (locale1 == locale2) {
        return locale2;
      }
    }
    label106:
    label112:
    do
    {
      do
      {
        if (locale1.g() >= locale2.g()) {
          break;
        }
        locale2 = locale2.a();
        if ((!bool2) && (bool1)) {
          break label160;
        }
      } while (!bool1);
    } while (bool2);
    if ((bool2) || (locale1 == locale2)) {
      label155:
      return locale1;
    }
    label160:
    return null;
  }
  
  public static e b(e parame)
  {
    boolean bool2 = f.e;
    boolean bool1 = f.d;
    e locale = null;
    int i = 0;
    z localz = new z();
    localz.b(parame);
    break label74;
    label28:
    if (i == 0) {
      label29:
      locale = (e)localz.b();
    }
    label74:
    while (bool2)
    {
      if (!bool2) {
        if (locale.f())
        {
          i = 1;
          if (bool2) {
            break label29;
          }
          if (!bool1) {
            break label28;
          }
        }
      }
      y localy = locale.b();
      if (!localy.e()) {
        break label28;
      }
      localz.b((e)localy.j());
      localy.f();
      if ((!bool2) && ((!bool1) && (!bool1))) {
        break;
      }
    }
    return locale;
  }
  
  public static String c(e parame)
  {
    a_ locala_ = new a_();
    n.a(locala_, parame);
    return locala_.toString();
  }
  
  public static String a(h paramh)
  {
    return c(paramh.a());
  }
  
  public static class a_
    implements i
  {
    String a = "";
    public static int b;
    
    public void a(e parame)
    {
      this.a += parame.toString();
    }
    
    public String toString()
    {
      return this.a;
    }
  }
}


/* Location:           E:\idea\
 * Qualified Name:     a.f.h.a.a.o
 * JD-Core Version:    0.7.0.1
 */